from fastapi import APIRouter, Depends

from forward.api.admin.schemas.lucky.activity_order import (
    ActivityOrderAddInSchema,
    ActivityOrderDetailInSchema,
    ActivityOrderListInSchema,
    ActivityOrderSiginInSchema,
    ActivityOrderStatusInSchema,
)
from forward.api.admin.service.lucky.activity_order import ActivityOrderService

activity_order = APIRouter(prefix="/order")


@activity_order.post("/lists")
async def list(
    list_in: ActivityOrderListInSchema,
    activity_order_service: ActivityOrderService = Depends(),
):
    return await activity_order_service.lists(list_in)


@activity_order.post("/add")
async def add(
    add_in: ActivityOrderAddInSchema,
    activity_order_service: ActivityOrderService = Depends(),
):
    return await activity_order_service.add(add_in)


@activity_order.post("/detail")
async def detail(
    detail_in: ActivityOrderDetailInSchema,
    activity_order_service: ActivityOrderService = Depends(),
):
    return await activity_order_service.detail(detail_in)


@activity_order.post("/status")
async def status(
    status_in: ActivityOrderStatusInSchema,
    activity_order_service: ActivityOrderService = Depends(),
):
    return await activity_order_service.status(status_in)


@activity_order.post("/sigin")
async def sigin(
    sigin_in: ActivityOrderSiginInSchema,
    activity_order_service: ActivityOrderService = Depends(),
):
    return await activity_order_service.sigin(sigin_in)
